package com.example.helloword.dto;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.web.bind.annotation.GetMapping;

@Getter
@AllArgsConstructor
public enum EnumCity {
    NINGBO(0, "ningBo"),
    ZheJiang(1, "hangZhou")
    ;

    @Override
    public String toString() {
        return "EnumCity{" +
                "type=" + type +
                ", desc='" + desc + '\'' +
                '}';
    }

    private Integer type;
    private String desc;
}
